import { ENUM_MAJOR } from "@/enum/system.enum";
import { ThemeComponents } from "@/api/service/theme-coms/types";

export const showForm = ref(false);
const formObj: ThemeComponents = {
  scale: 0,
  imgSrc: "",
  deptId: "",
  major: ENUM_MAJOR.MAIN,
  width: 0,
  height: 0,
  templateList: [],
  templateId: "",
  templateName: "",
  templateData: ""
};
export const form = ref<ThemeComponents>({
  ...formObj
});

export const resetForm = () => {
  form.value = {
    ...formObj
  };
};
